<?php
/**
 * @author spenceryg
 * @date 2022/11/29
 * @time 9:27 下午
 * @focus love & life
 */


namespace app\auto\validate;


class RelationValidate extends \think\Validate
{
    protected $rule = [
        'table_id_master|主表' => 'require',
        'table_id_sliver|副表' => 'require',
        'type|关系' => 'require',
        'table_id_middle|中间表'=>['requireIf:type,hasOneThrough','requireIf:type,hasManyThrough']
    ];
}
